/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * UIMain.java
 *
 * Created on Jun 14, 2011, 8:41:49 AM
 */
package Implementation.SourceCode.GUI;

/**
 *
 * @author mrkingdom75
 */
public class UIMain extends javax.swing.JFrame {

    /** Creates new form UIMain */
    public UIMain() {
        initComponents();
        setTitle("Báo Cáo Chi - mrkingdom75@gmail.com");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        panHeader = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        panWest = new javax.swing.JPanel();
        panEast = new javax.swing.JPanel();
        panFooter = new javax.swing.JPanel();
        btnDong = new javax.swing.JButton();
        panCenter = new javax.swing.JPanel();
        btnNhapLieu = new javax.swing.JButton();
        btnBaoCao = new javax.swing.JButton();
        btnBaoCao1 = new javax.swing.JButton();

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        panHeader.setBackground(new java.awt.Color(0, 102, 0));
        panHeader.setForeground(new java.awt.Color(51, 255, 51));
        panHeader.setMinimumSize(new java.awt.Dimension(329, 150));
        panHeader.setPreferredSize(new java.awt.Dimension(406, 130));
        panHeader.setLayout(new java.awt.BorderLayout());

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 48));
        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/Settings-icon.png"))); // NOI18N
        jLabel1.setText("Quản Lý");
        panHeader.add(jLabel1, java.awt.BorderLayout.CENTER);

        getContentPane().add(panHeader, java.awt.BorderLayout.NORTH);

        panWest.setBackground(new java.awt.Color(0, 102, 0));
        panWest.setPreferredSize(new java.awt.Dimension(10, 200));

        javax.swing.GroupLayout panWestLayout = new javax.swing.GroupLayout(panWest);
        panWest.setLayout(panWestLayout);
        panWestLayout.setHorizontalGroup(
            panWestLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 10, Short.MAX_VALUE)
        );
        panWestLayout.setVerticalGroup(
            panWestLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 333, Short.MAX_VALUE)
        );

        getContentPane().add(panWest, java.awt.BorderLayout.WEST);

        panEast.setBackground(new java.awt.Color(0, 102, 0));
        panEast.setPreferredSize(new java.awt.Dimension(10, 200));

        javax.swing.GroupLayout panEastLayout = new javax.swing.GroupLayout(panEast);
        panEast.setLayout(panEastLayout);
        panEastLayout.setHorizontalGroup(
            panEastLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 10, Short.MAX_VALUE)
        );
        panEastLayout.setVerticalGroup(
            panEastLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 333, Short.MAX_VALUE)
        );

        getContentPane().add(panEast, java.awt.BorderLayout.EAST);

        panFooter.setBackground(new java.awt.Color(0, 102, 0));

        btnDong.setFont(new java.awt.Font("Tahoma", 1, 24));
        btnDong.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/Close_Box_Red.png"))); // NOI18N
        btnDong.setText("Đóng");
        btnDong.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDongActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panFooterLayout = new javax.swing.GroupLayout(panFooter);
        panFooter.setLayout(panFooterLayout);
        panFooterLayout.setHorizontalGroup(
            panFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panFooterLayout.createSequentialGroup()
                .addContainerGap(442, Short.MAX_VALUE)
                .addComponent(btnDong)
                .addContainerGap())
        );
        panFooterLayout.setVerticalGroup(
            panFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panFooterLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnDong)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        getContentPane().add(panFooter, java.awt.BorderLayout.SOUTH);

        panCenter.setBackground(new java.awt.Color(255, 255, 255));

        btnNhapLieu.setBackground(new java.awt.Color(0, 51, 51));
        btnNhapLieu.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N
        btnNhapLieu.setForeground(new java.awt.Color(255, 255, 255));
        btnNhapLieu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/Devices-input-tablet-icon.png"))); // NOI18N
        btnNhapLieu.setText("Nhập Liệu");
        btnNhapLieu.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        btnNhapLieu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNhapLieuActionPerformed(evt);
            }
        });

        btnBaoCao.setBackground(new java.awt.Color(0, 51, 51));
        btnBaoCao.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N
        btnBaoCao.setForeground(new java.awt.Color(255, 255, 255));
        btnBaoCao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/Apps-kchart-icon.png"))); // NOI18N
        btnBaoCao.setText("Báo Cáo");
        btnBaoCao.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        btnBaoCao.setPreferredSize(new java.awt.Dimension(111, 31));
        btnBaoCao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBaoCaoActionPerformed(evt);
            }
        });

        btnBaoCao1.setBackground(new java.awt.Color(0, 51, 51));
        btnBaoCao1.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N
        btnBaoCao1.setForeground(new java.awt.Color(255, 255, 255));
        btnBaoCao1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/emblem-symbolic-link.png"))); // NOI18N
        btnBaoCao1.setText("Quản Lý Tên Viết Tắt");
        btnBaoCao1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        btnBaoCao1.setPreferredSize(new java.awt.Dimension(111, 31));
        btnBaoCao1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBaoCao1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panCenterLayout = new javax.swing.GroupLayout(panCenter);
        panCenter.setLayout(panCenterLayout);
        panCenterLayout.setHorizontalGroup(
            panCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panCenterLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnNhapLieu, javax.swing.GroupLayout.DEFAULT_SIZE, 547, Short.MAX_VALUE)
                    .addComponent(btnBaoCao1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 547, Short.MAX_VALUE)
                    .addComponent(btnBaoCao, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 547, Short.MAX_VALUE))
                .addContainerGap())
        );
        panCenterLayout.setVerticalGroup(
            panCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panCenterLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnNhapLieu, javax.swing.GroupLayout.DEFAULT_SIZE, 97, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnBaoCao1, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnBaoCao, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE)
                .addContainerGap())
        );

        getContentPane().add(panCenter, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnNhapLieuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNhapLieuActionPerformed
        // TODO add your handling code here:
        UINhapLieu nhapLieu = new UINhapLieu();
        nhapLieu.setTitle("Báo Cáo Chi - Nhập Liệu - mrkingdom75@gmail.com");
        nhapLieu.setVisible(true);
    }//GEN-LAST:event_btnNhapLieuActionPerformed

    private void btnDongActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDongActionPerformed
        System.exit(0);
    }//GEN-LAST:event_btnDongActionPerformed

    private void btnBaoCao1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBaoCao1ActionPerformed
        UIVietTat viettat = new UIVietTat();
        viettat.setTitle("Báo Cáo Chi - Quản Lý Tên Viết Tắt - mrkingdom75@gmail.com");
        viettat.setVisible(true);
    }//GEN-LAST:event_btnBaoCao1ActionPerformed

    private void btnBaoCaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBaoCaoActionPerformed
        UIBaoCao baocao = new UIBaoCao();
        baocao.setTitle("Báo Cáo Chi - Báo Cáo - mrkingdom75@gmail.com");
        baocao.setVisible(true);
    }//GEN-LAST:event_btnBaoCaoActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new UIMain().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnBaoCao;
    private javax.swing.JButton btnBaoCao1;
    private javax.swing.JButton btnDong;
    private javax.swing.JButton btnNhapLieu;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel panCenter;
    private javax.swing.JPanel panEast;
    private javax.swing.JPanel panFooter;
    private javax.swing.JPanel panHeader;
    private javax.swing.JPanel panWest;
    // End of variables declaration//GEN-END:variables
}
